export interface pmsCategoryType {
  catId?: number;
  name?: string;
  parentCid?: number;
  parentName?: string;
  catLevel?: number;
  sort?: number;
  icon?: string;
  productUnit?: string;
  productCount?: number;
  showStatus?: number;
  children?: pmsCategoryType[]
}

export interface pmsCategoryEditResponse extends ResponseData {
  data: boolean;
}

export interface pmsCategoriesResponse extends ResponseData {
  data: pmsCategoryType[];
}

export interface pmsCategorResponse extends ResponseData {
  data: pmsCategoryType;
}

export interface pmsCategorySortType {
  lastCatId: number;
  lastSort: number;
  nextCatId: number;
  nextSort: number;
}


// 定义全部接口返回数据都拥有ts类型
interface ResponseData {
  code: number;
  message: string;
}